<?php

    $name = $column->getName();
    $options = $column->config['options'];
    $key = $record->getKeyName();
?>
<label class="custom-radio-select">
    <div class="field_text" >
        <?php foreach($options as $k => $v):?>
        <div class="form-check">
            <input type="radio" name="<?=$name.'-'.$record->$key?>"
                   parimy-key = "<?= $record->getKeyName() ?>"
                   value='[{"name":"<?=$key?>", "value":<?= $record->$key ?>}, {"name":"<?= $name?>", "value": <?=$k?>}]'
                   id="radio-<?=$name.'-'.$record->$key.'-'.$k?>"
                   onclick="onlistUpdate($(this), 'radio')"
                   <?= ($record->$name==$k)?'checked':'' ?>
            >
            <label for="radio-<?=$name.'-'.$record->$key.'-'.$k?>">
                <span>
                    <?= $v ?>
                </span>
            </label>
        </div>
        <?php endforeach;?>
    </div>
</label>
